/* 基础样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 20px;
}

a {
    text-decoration: none;
    color: #006699;
}

a:hover {
    color: #ff6600;
}

/* 留言标题 */
.guestbook-header {
    background-color: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #006699;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guestbook-header h2 {
    margin: 0;
    font-size: 18px;
    color: #006699;
}

.guestbook-actions a {
    margin-left: 15px;
    font-weight: bold;
    color: #006699;
}

.guestbook-actions a:hover {
    text-decoration: underline;
}

/* 发布留言表单 */
.guestbook-form {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
}

.guestbook-form h3 {
    margin: 0 0 15px;
    color: #006699;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.guestbook-table-form {
    width: 100%;
    border-collapse: collapse;
}

.guestbook-table-form input,
.guestbook-table-form textarea {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.guestbook-table-form input:focus,
.guestbook-table-form textarea:focus {
    border-color: #006699;
    outline: none;
}

.guestbook-table-form button {
    padding: 6px 12px;
    background-color: #006699;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.guestbook-table-form button:hover {
    background-color: #005580;
}

/* 留言内容展示 */
.guestbook-content {
    background-color: #ffffff;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.guestbook-item {
    margin-bottom: 20px;
}

.guestbook-table-item {
    width: 100%;
    border-collapse: collapse;
}

.guestbook-table-item td {
    padding: 8px;
    vertical-align: middle;
}

.guestbook-message {
    padding: 10px 0;
    line-height: 1.6;
}

.guestbook-reply {
    margin-top: 10px;
    padding-left: 15px;
    border-left: 3px solid #006699;
}

.guestbook-hr {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 15px 0;
}

/* 图标样式 */
.icon-star::before {
    content: "★";
    font-family: Wingdings;
    color: #006699;
}

.icon-mail::before {
    content: "m";
    font-family: Wingdings;
    color: #006699;
}

.icon-qq::before {
    content: "q";
    font-family: Wingdings;
    color: #006699;
}

/* 分页导航 */
.guestbook-pagination {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.guestbook-table-pagination {
    width: 100%;
}

.guestbook-input {
    width: 50px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.guestbook-button {
    padding: 5px 10px;
    background-color: #006699;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.guestbook-button:hover {
    background-color: #005580;
}


@media (max-width: 768px) {
    .guestbook-table-form, .guestbook-table-item {
        width: 100%;
    }
    .guestbook-form {
        padding: 15px;
    }
}